// JavaScript Document
var xmlHttp
function show_category(str,last)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("您的瀏覽器不支持AJAX！");
  return;
  }
this.left_id="left_menu0"+str;
//alert (left_id);
var url="admin_ajax_output.php";
url=url+"?act=category_list";
url=url+"&category_id="+str;
url=url+"&last="+last;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged()
{
if (xmlHttp.readyState==4 && xmlHttp.status==200)
{
$(left_id).innerHTML=xmlHttp.responseText;
}
}
function $(s) {
    return document.getElementById(s);
}
function $$(s) {
    return document.getElementsByName(s);
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
